package asn.match.model;

// Generated 15 juin 2014 03:03:18 by Hibernate Tools 4.0.0

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * AboutMember generated by hbm2java
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "about_member", catalog = "muslima_sphere", uniqueConstraints = @UniqueConstraint(columnNames = "profil_id"))
public class AboutMember implements java.io.Serializable {

	private Integer idAboutMember;
	private Profil profil;
	private String about;
	private String description;
	private String status;
	private Date createdAt;
	private Date modifiedAt;

	public AboutMember() {
	}

	public AboutMember(Profil profil, String status, Date createdAt,
			Date modifiedAt) {
		this.profil = profil;
		this.status = status;
		this.createdAt = createdAt;
		this.modifiedAt = modifiedAt;
	}

	public AboutMember(Profil profil, String about, String description,
			String status, Date createdAt, Date modifiedAt) {
		this.profil = profil;
		this.about = about;
		this.description = description;
		this.status = status;
		this.createdAt = createdAt;
		this.modifiedAt = modifiedAt;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id_about_member", unique = true, nullable = false)
	public Integer getIdAboutMember() {
		return this.idAboutMember;
	}

	public void setIdAboutMember(Integer idAboutMember) {
		this.idAboutMember = idAboutMember;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "profil_id", unique = true, nullable = false)
	public Profil getProfil() {
		return this.profil;
	}

	public void setProfil(Profil profil) {
		this.profil = profil;
	}

	@Column(name = "about", length = 65535)
	public String getAbout() {
		return this.about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	@Column(name = "description", length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "status", nullable = false, length = 15)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", nullable = false, length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "modified_at", nullable = false, length = 19)
	public Date getModifiedAt() {
		return this.modifiedAt;
	}

	public void setModifiedAt(Date modifiedAt) {
		this.modifiedAt = modifiedAt;
	}

}
